<?php
$this->title = "Новости";
$this->headTitle($this->title);
?>
<p><a href="<?php echo $this->url(array(),'adminaddnews',true);?>">Добавить новость</a></p>
<table>
    <tr>
        <th>Название</th>
        <th>H1</th>
        <th>Alias</th>
        <th>Краткий текст</th>
        <th>&nbsp;</th>
    </tr>
    <?php foreach ($this->news as $news): ?>
      <tr>
          <td>
        <a href="<?php echo $this->url(array('newsAlias' => $news->alias),'adminviewnews');?>">
            <?php echo $this->escape($news->name);?>
        </a>
    </td>
    <td><?php echo $this->escape($news->h1);?></td>
    <td><?php echo $this->escape($news->alias);?></td>
    <td width="400px"><?php echo $this->escape($news->short);?></td>
    <td>
        <a href="<?php echo $this->url(array('newsId' => $news->getId()),'admineditnews');?>">Редактировать</a>
        <a href="<?php echo $this->url(array('newsId' => $news->getId()),'admindeletenews');?>">Удалить</a>
    </td>
</tr>
  <?php endforeach; ?>
</table>